DrawThemeMenuBackground
NEW WITH THE APPEARANCE MANAGER
Draws an Appearance-compliant menu background.
pascal OSStatus DrawThemeMenuBackground ( const Rect *inMenuRect, ThemeMenuType inMenuType);
inMenuRect
- On input, a pointer to a rectangle, which should contain the entire menu.
inMenuType
- A value specifying the type of menu (pull-down, pop-up, or hierarchical) for which a background is being drawn; see "Appearance-Compliant Menu Type Constants".
- function result
- A result code; see "Result Codes".
DISCUSSION
TheDrawThemeMenuBackground
function draws a menu background in the rectangle specified; it should be called when you are writing a custom menu bar definition function and wish to coordinate with the current theme.SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before calling theDrawThemeMenuBackground
function. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.